import request from './../axios'
import { requestHandle } from "./../axios";
import { API_PREFIX } from "@/assets/js/dict"


/**
 * 获取更新手机号用的短信验证码
 * @param params
 * @param call
 */
export function getPhoneCodeForUpdatePhone(params, call) {
    requestHandle(request({
        url: `${API_PREFIX}/tutor/action/getPhoneCodeForUpdatePhone`,
        method: 'get',
        params: params
    }), call);
}


/**
 * 更新家教的手机号码
 * @param params
 * @param call
 */
export function updatePhoneOfTutor(params, call) {
    requestHandle(request({
        url: `${API_PREFIX}/tutor/action/updatePhone`,
        method: 'post',
        params: params
    }), call);
}

/**
 * 支付前重申用户协议
 * @param call
 */
export function payProtocolHtml(call) {
    requestHandle(request({
        url: `${API_PREFIX}/tutor/action/payProtocolHtml`,
        method: 'get'
    }), call);
}


